import axios from './axios.base';

export default {
  async getUser(params:any={}){
    const target={
      limit:10,
      page:1,
      join:['address','order','userCoupon','userCoupon.coupon']
    }
    Object.assign(target,params);
    const res=await axios.get('/api/user',{
      params:target
    });
    return res.data;
  }

}